package models

import "gorm.io/gorm"

type Store struct {
	gorm.Model
	Name      string    `json:"name" gorm:"type:varchar(100)"`
	Types     string    `json:"types" gorm:"type:varchar(100)"`
	Img       string    `json:"img" gorm:"type:varchar(100)"`
	DayMoney  float64   `json:"day_money" gorm:"type:decimal(10,2)"`
	CateId    uint      `json:"cateId" gorm:"type:int(10)"`
	StoreType StoreType `gorm:"foreignKey:CateId"`
}
type StoreType struct {
	gorm.Model
	Title string `json:"title" gorm:"type:varchar(100)"`
}
type User struct {
	gorm.Model
	Username string `json:"username"  gorm:"type:varchar(100)"`
	Password string `json:"password"  gorm:"type:varchar(100)"`
}
